#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include <math.h>

int main() {
    int a = 0;
    scanf("%d", &a);//1122334455
    int i = 0;
    int sum = 0;
    while (a)
    {
        int tmp = a % 10;
        a = a / 10;
        if (tmp % 2 == 0)
        {
            tmp = 0;
        }
        else
        {
            tmp = 1;
        }
        sum += tmp * pow(10, i++);
    }
    printf("%d", sum);
    return 0;
}